<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-16" />
<title>Untitled Document</title>
<link rel="stylesheet" href="<?php echo STATIC_DOMAIN;?>css/reset.css" type="text/css" media="all">
<link rel="stylesheet" href="<?php echo STATIC_DOMAIN;?>css/buiding.css" type="text/css" media="all">
<script type="text/javascript" src="<?php echo STATIC_DOMAIN;?>js/jquery-1.8.2.min.js"></script>
</head>
<body>
	<div id="warp">
    	<div id="header">
        </div>
        <!-- end header-->
        <div id="content">
        	<div id="leftMenu">
            	<ul class="navi">
                	<li><a>Trang chủ</a></li>
                    <li><a>Giới thiệu</a></li>
                    <li><a>Hướng dẫn</a></li>
                    <li><a>Chat</a></li>
                    <li class="marbottom20"><a>Đăng nhập</a></li>
                    
                	<li><a>Forum</a></li>
                    <li><a>Cốt truyện</a></li>
                    <li><a>Trợ giúp</a></li>
                    <li><a>Liên hệ</a></li>
                    <li><a>Tìm hiểu</a></li>
                    <li><a href="<?php echo site_url("account/logout");?>">Thoát ra</a></li>
                </ul>
            </div>
        	<div id="viewInfo" class="padtop20 padleft20 tbl-list">
                <form id="formLogin" method="post" action="<?php echo site_url("account/signup");?>" enctype="multipart/form-data">
                    <table class="tbl-list">
                        <tr>
                            <td colspan="2"><label>Đăng kí tài khoản</label></td>
                        </tr>
                        <tr>
                            <td class="ver-middle"><label>Tên đăng nhập</label></td>
                            <td>
                                <p>
                                    <input id="username" name="username" type="text" size="30" value="" />
                                </p>
                                <p class="errorUsername text-error">
                                    <?php echo $error['username'] != '' ? $error['username'] : '';?>
                                </p>
                            </td>
                        </tr>
                        <tr>
                            <td class="ver-middle"><label>Mật khẩu</label></td>
                            <td>
                                <p>
                                    <input id="password" name="password" type="password" size="30" value="" />
                                </p>
                                <p class="errorPassword text-error">
                                    <?php echo $error['password'] != '' ? $error['password'] : '';?>
                                </p>
                            </td>
                        </tr>
                        <tr>
                            <td class="ver-middle"><label>Địa chỉ Email</label></td>
                            <td>
                                <p>
                                    <input id="email" name="email" type="text" size="30" value="" />
                                </p>
                                <p class="errorEmail text-error">
                                    <?php echo $error['email'] != '' ? $error['email'] : '';?>
                                </p>
                            </td>
                        </tr>
                        <tr>
                            <td class="ver-middle"><label>Mã bảo mật</label></td>
                            <td>
                                <p class="image-captcha"><?php echo $imageCaptcha;?></p>
                                <p><input id="captcha" name="captcha" type="text" size="30" value="" /></p>
                                <p>
                                    <a onclick="refesh_captcha();">Nhận mã khác</a>
                                </p>
                                <p class="errorCaptcha text-error">
                                    <?php echo $error['captcha'] != '' ? $error['captcha'] : '';?>
                                </p>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2"><input type="submit" value="Đăng kí" /></td>
                        </tr>
                    </table>
                </form>
            </div>
        </div>
     </div>
     <script>
			function refesh_captcha(){
				$.ajax({
					 url: '<?php echo STATIC_DOMAIN;?>account/refesh_captcha',
					 success: function(html){
						$('.image-captcha').html(html);
					 }
				 });	
			}
     </script>
</body>
</html>